package com.mai.demo.mapper;

import com.mai.demo.entity.domain.Course;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author MR
* @description 针对表【course(课程)】的数据库操作Mapper
* @createDate 2024-12-23 10:08:26
* @Entity generator.domain.Course
*/
public interface CourseMapper extends BaseMapper<Course> {

    @Select("SELECT courNum ,courName  FROM course WHERE courName LIKE CONCAT('%', #{courseName}, '%')")
    List<Course> getList(String courseName, String subClass);
}




